const mongoose = require('../db');
const Schema = mongoose.Schema;

let UserSchema = new Schema({
  username: { type: String, required: true },
  password: { type: String, required: true },
  role: { type: Array, required: true },
});

let UserModel = mongoose.model('user', UserSchema);

module.exports = UserModel;
